@extends("admin.layout.main")

@section("css")
	<link rel="stylesheet" href="/adstatic/repeat/repeat.css" media="all" />
@endsection

@section("content")
	<blockquote class="layui-elem-quote news_search">
		<div class="layui-inline">
		    <div class="layui-input-inline">
		    	<input type="text" value="{{$querystr}}" placeholder="请输入关键字" class="layui-input search_input" id="search_input">
		    </div>
		    <button class="layui-btn search_btn" id="search_btn">查询</button>
			<a href="/repeat/index" class="layui-btn">重置</a>
			<span>注：本页面支持"复投姓名"与"流水号"搜索！</span>
		</div>
		<div class="layui-inline">
			<div class="layui-form-mid layui-word-aux"></div>
		</div>
	</blockquote>
	<div class="layui-form users_list">
	  	<table class="layui-table">
		    <colgroup>
				<col width="">
				<col width="">
				<col>
				<col width="">
				<col >
				<col >
				<col width="">
				<col width="">
		    </colgroup>
		    <thead>
				<tr>
					<th>复投姓名</th>
					<th>复投金额</th>
					<th>复投等级</th>
					<th>流水号</th>
					<th>审核状态</th>
					<th>审核操作</th>
					<th>生成时间</th>
					<th>操作时间</th>
				</tr>
		    </thead>
		    <tbody class="users_content">
			@foreach ($datas as $data)
				<tr>
				<td>{{ $data->uname }}</td>
				<td>{{ $data->level_money }}</td>
				<td>{{ $data->level_name }}</td>
				<td>{{ $data->num }}</td>
				<td>
					@switch($data->status)
						@case(0)
							未验证
							@break
						@case(1)
							验证成功
							@break
						@default
							验证失败
					@endswitch
				</td>
				<td>
					<input data-id="{{ $data->id }}" data-uid="{{$data->uid}}" data-money="{{ $data->level_money }}" data-paytime="{{$data->create_time}}"  type="checkbox" lay-skin="switch" lay-text="是|否" lay-filter="isOn"
						   @if ($data->status == 1) checked disabled @endif>
				</td>
				<td>{{ date('Y-m-d H:i:s',$data->create_time) }}</td>
				<td>{{$data->update_time?date('Y-m-d H:i:s',$data->update_time):'暂无'}}</td>

				</tr>
			@endforeach
			</tbody>
		</table>
	</div>
	<div style="text-align: right;">
	{{ $datas->appends(['querystr'=>$querystr])->links('admin.layout.paginate') }}
	</div>

@endsection

@section("js")
	<script type="text/javascript" src="/adstatic/repeat/repeat.js"></script>
@endsection
